package station;

public abstract class Vehicle {
    private int length;
    private String plateNo;

    public Vehicle() {
    }

    public Vehicle(int length, String plateNo) {
        this.length = length;
        this.plateNo = plateNo;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public String getPlateNo() {
        return plateNo;
    }

    public void setPlateNo(String plateNo) {
        this.plateNo = plateNo;
    }

    public void print(){
        System.out.println("***车辆信息***");
        System.out.println("车牌号："+this.getPlateNo());
        System.out.println("车长："+this.getLength());
    }
    public abstract double getRate();
}
